﻿using System;

namespace mojoPortal.Web.RS
{
    public partial class RSAccessDenied : mojoBasePage
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            string code = "";
            string message = "";
            if (Request.QueryString["code"] != null)
            {
                code = Request.QueryString["code"].ToString();
                if (code == "denied")
                {
                    message = "You Are Not Authorized To Access Company System At This Time.  Please Contact your Manager.";
                }
                if (code == "unknownpin")
                {
                    message = "Your PIN is not recognized in the system.  Please Contact your Manager.";
                }
            }
            else
                message = "You Are Not Authorized To Access Company System At This Time.  Please Contact your Manager.";

            lblCodeMessage.Text = message;
        }
    }
}